import Base from "./base";

class Market extends Base {
  mode: any = 1
  goal = 0
  // 营销目的
  marketingGoal: string = 'MARKETING_GOAL_PRODUCT_SALES';
  // MARKETING_TARGET_TYPE_CONSUMER_PRODUCT | MARKETING_TARGET_TYPE_WECHAT_CHANNELS_LIVE
  marketingTargetType: 'MARKETING_TARGET_TYPE_CONSUMER_PRODUCT' | 'MARKETING_TARGET_TYPE_WECHAT_CHANNELS_LIVE' =
    'MARKETING_TARGET_TYPE_CONSUMER_PRODUCT'
  lib = ''
  productInfo = {
    productType: 1 || 2, // 1媒体账户 2 全账户相同
    productCatalogId: undefined, // 商品库ID
    productId: undefined, // 商品ID
    productName: '' // 商品名称
  }

  get isWxChannelsLive() {
    return this.marketingTargetType == 'MARKETING_TARGET_TYPE_WECHAT_CHANNELS_LIVE';
  }
  constructor(options: any) {
    super();
    this.init(options);
    return this;
  }
}

export default Market
